31001: Function test for xfm:pi

Documentation

Tests of function xfm:pi() as xs:double The test cases below are taken from the w3c XPath 3.1 test suite at https://dev.w3.org/cvsweb/2011/QT3-test-suite/math/.

Owners

Name Affiliation Email Start End
Harald Schmitt ABZ Reporting GmbH harald.schmitt@abz-reporting.com 29-10-2018 at 00:00:00

References

https://www.w3.org/TR/xpath-functions-31/#func-math-pi

https://dev.w3.org/cvsweb/2011/QT3-test-suite/math/

Test Case Variations


V-01 function pi() multipled by 2

Documentation

Inputs

Outputs

  • Result test: $result eq 6.283185307179586e0

V-02 function pi() converts an angle of 60 degrees to radians

Documentation

Inputs

Outputs

  • Result test: abs($result - 1.0471975511965976e0) lt 1e-14

V-03 function pi() itself

Documentation

Inputs

Outputs

  • Result test: $result eq 3.141592653589793e0

Revisions

Name On Details
Harald Schmitt 29-10-2018 at 00:00:00 Created the test case.